﻿using Citi.BOExtraction.Util;
using EO.WebBrowser.WinForm;
using System.Windows.Forms;

namespace Citi.ResourceConsolidation.WindowUI.BoExtraction
{
    public class GDWExtract : BusinessObjectsExtract
    {
        public GDWExtract(WebControl webControl, string reportName, string startUrl, string singleSignOnUrl, string userLogin, string pathToSave,
            string parameters, bool newWindowNoAction, Form form = null)
            : base(webControl, reportName, startUrl, singleSignOnUrl, userLogin, pathToSave, parameters, newWindowNoAction, form)
        { }

        public override string JavascriptFrameBody { get { return "window.frames['openDocChildFrame']"; } }

        public override void InboxDocumentLoadCompleted()
        {
            ReportRefreshLoadCompleted();
        }
    }
}
